package com.zc.homePage.mapper;

import com.ruoyi.common.annotation.DataScope;
import com.ruoyi.common.core.domain.BaseEntity;
import com.zc.homePage.domain.ChargeCustomOrder;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Author glb
 * @Date 2023/10/19 10:58
 * @Version 1.0
 */
public interface HomePageMapper {

    @DataScope(deptAlias = "d")
    public Map getLinkRelativeRatioCount(@Param("entity") BaseEntity entity, @Param("todayTime") String todayTime, @Param("yesterdayTime")  String yesterdayTime);
    @DataScope(deptAlias = "d")
    public List<Map> getChargingCapacityChargingNumber(@Param("entity") BaseEntity entity,@Param("timeType") String timeType,@Param("time")  String time );
    @DataScope(deptAlias = "d")
    public List<Map> getChargingStationUsageRate(@Param("entity") BaseEntity entity,@Param("timeType") String timeType,@Param("time")  String time );
    @DataScope(deptAlias = "d")
    public List<Map> getRegistrationVolume(@Param("entity") BaseEntity entity,@Param("startTime") String startTime,@Param("endTime")  String endTime);
    @DataScope(deptAlias = "d")
    public List<Map> getTodayStationSumPower(@Param("entity") BaseEntity entity,@Param("todayTime") String todayTime);
    @DataScope(deptAlias = "d")
    public List<ChargeCustomOrder> getTodayChargeOrder(@Param("entity") BaseEntity entity,@Param("todayTime") String todayTime);

    public int getCountPile();
}
